/*
 * @Descripttion: 中国地图 json
 * @version:
 * @Author: qianlishi
 * @Date: 2021-08-29 07:31:21
 * @LastEditors: qianlishi
 * @LastEditTime: 2021-09-28 14:17:20
 */
export const widgetMap = {
    code: 'widget-map',
    type: 'chart',
    label: '中国地图',
    icon: 'iconzhongguoditu',
    options: {
      setup: [
        {
          type: 'el-input-text',
          label: '图层名称',
          name: 'layerName',
          required: false,
          placeholder: '',
          value: '分布图',
        },
        {
          type: 'el-switch',
          label: '组件是否显示',
          name: 'display',
          required: false,
          placeholder: '',
          value: true,
        },
        {
          type: 'el-switch',
          label: '锁定图层',
          name: 'disabled',
          required: false,
          placeholder: '',
          value: false,
        },
        [
          {
            name: '地图设置',
            list: [
              {
                type: 'el-input-number',
                label: '地图大小',
                name: 'mapSize',
                required: false,
                placeholder: '',
                value: 84,
              },
              {
                type: 'el-input-number',
                label: '地图左边距',
                name: 'left',
                required: false,
                placeholder: '',
                value: 0,
              },
              {
                type: 'el-input-number',
                label: '地图上边距',
                name: 'top',
                required: false,
                placeholder: '',
                value: 0,
              },
            ]
          },
          {
            name: '图例设置',
            list: [
              {
                type: 'el-switch',
                label: '是否展示图例',
                name: 'LegendShow',
                required: false,
                placeholder: '',
                value: true,
              },
              {
                type: 'el-input-number',
                label: '左右位置',
                name: 'LegendLeft',
                required: false,
                placeholder: '',
                value: 0,
              },
              {
                type: 'el-input-number',
                label: '上下位置',
                name: 'LegendTop',
                required: false,
                placeholder: '',
                value: 0,
              },
              {
                type: 'el-input-number',
                label: '缩放比例',
                name: 'scale',
                required: false,
                placeholder: '',
                value: 1,
              },
            ]
          },
          {
            name: '面包屑设置',
            list: [
              {
                type: 'el-switch',
                label: '是否展示面包屑',
                name: 'breadShow',
                required: false,
                placeholder: '',
                value: true,
              },
              {
                type: 'el-input-number',
                label: '左右位置',
                name: 'breadLeft',
                required: false,
                placeholder: '',
                value: 0,
              },
              {
                type: 'el-input-number',
                label: '上下位置',
                name: 'breadTop',
                required: false,
                placeholder: '',
                value: 0,
              },
              {
                type: 'el-input-number',
                label: '缩放比例',
                name: 'breadScale',
                required: false,
                placeholder: '',
                value: 1,
              },
            ]
          }
        ],

      ],
      data: [],
      position: [
        {
          type: 'el-input-number',
          label: '左边距',
          name: 'left',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'el-input-number',
          label: '上边距',
          name: 'top',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'el-input-number',
          label: '宽度',
          name: 'width',
          required: false,
          placeholder: '该容器在1920px大屏中的宽度',
          value: 718,
        },
        {
          type: 'el-input-number',
          label: '高度',
          name: 'height',
          required: false,
          placeholder: '该容器在1080px大屏中的高度',
          value: 528,
        },
        {
          type: 'el-input-number',
          label: '层级',
          name: 'zIndex',
          required: false,
          placeholder: '该容器在大屏中的层级',
          value: 0
        },
      ]
    }
  }
